Component({
    properties: {
        title: {
            type: String,
            value: ""
        },
        cancelText: {
            type: String,
            value: "取消"
        },
        confirmText: {
            type: String,
            value: "确定"
        },
        backdrop: {
            type: Boolean,
            value: !0
        },
        animated: {
            type: Boolean,
            value: !0
        },
        modalSize: {
            type: String,
            value: "md"
        }
    },
    data: {},
    ready: function() {
        if (!this.selectComponent) throw new Error("小程序sdk暂不支持节点操作selectComponent");
        this.baseModal = this.selectComponent("#baseModal");
    },
    methods: {
        show: function() {
            this.baseModal.showModal();
        },
        hide: function() {
            this.baseModal.hideModal();
        },
        _cancelModal: function() {
            this.hide(), this.triggerEvent("cancelEvent");
        },
        _confirmModal: function() {
            this.triggerEvent("confirmEvent");
        }
    }
});